package com.itheima.file;

import java.io.File;

public class Demo04 {

    public static void main(String[] args) {
        File file = new File("day12\\aaa\\a.txt");
        File file1 = new File("day12\\aaa\\b.txt");
        File file2 = new File("day12\\aaa\\bbbb");
        System.out.println(file.exists());
        System.out.println(file1.exists());
        System.out.println(file2.exists());
        System.out.println(file.isDirectory());
        System.out.println(file.isFile());
        System.out.println(file1.isDirectory());
        System.out.println(file1.isFile());
        System.out.println(file2.isDirectory());
        System.out.println(file2.isFile());
        System.out.println(file.getName());
        System.out.println(file1.getName());
        System.out.println(file2.getName());

        //getAbsolutePath
        System.out.println(file.getAbsolutePath());
        System.out.println(file.getPath());
        File file3 = new File("D:\\code\\29\\se_advance_29\\day12\\aaa\\a.txt");
        System.out.println(file3.getPath());
    }
}
